//#define __FORCE_TRACE__
//#define __FORCE_DEBUG__
//#define __FORCE_INFO__
#define THIS_FILE "common\fn_actionSetID.sqf"
#include <tmf_constants.h>
#include <tmf_macros.h>

TRACE_1("Start",_this);
TMFPROFILERSTART;

private ["_action","_id"];
DEFAULT_PARAM(_action,0,[]);
DEFAULT_PARAM(_id,1,-1);
if (_id < 0) then {
	_id = NEXTJIPID;
};
if (count _action <= 0) then {
	_action = call FFUNC(hashEmpty);
};
_action = [_action, TMF_HK_ACTION_ID,_id] call FFUNC(HashSet);
TRACE_1("End",_action);
TMFPROFILERSTOP;
_action;